home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / Views / Pane Shapes / HorizontalBar.h < prev    next >
Text File  |  2000-06-23  |  429b  |  20 lines

  1. // HorizontalBar.h
  2.  
  3. #ifndef HorizontalBar_h
  4. #define HorizontalBar_h
  5.  
  6. #ifndef SuggestsPaneSize_h
  7. #include "SuggestsPaneSize.h"
  8. #endif
  9.  
  10. template <int32 height>
  11. class HorizontalBar: public SuggestsPaneSize
  12.   {
  13.     public:
  14.         virtual int32 MinimumHeight() const                        { return height; }
  15.         virtual int32 MaximumHeight() const                        { return height; }
  16.         virtual int32 BestWidth( Range32 bound ) const        { return bound.Start(); }
  17.   };
  18.  
  19. #endif
  20.